<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
<head>
<meta http-equiv="Content-Type" content="text/html; charset=<?php echo $cfg_soft_lang; ?>">
<title>幻灯片组管理</title>
<link href="css/base.css" rel="stylesheet" type="text/css" />
</head>
<body background='images/allbg.gif' leftmargin='8' topmargin='8'>
<table width="98%" border="0" align="center" cellpadding="3" cellspacing="1" bgcolor="#D6D6D6">
	<tr>
		<td height="28" background="images/tbg.gif" style="padding-left:10px;" colspan="8"> 
			<b>幻灯片管理</b>&nbsp;
			[<a href="flash_add.php"><u>添加幻灯片图片</u></a>]
			[<a href="flash_type.php"><u>增加幻灯片组</u></a>]
		</td>
	</tr>
	<tr bgcolor="#FBFCE2">
		<td width="10%" height="24" align="center">类型ID</td>
		<td width="50%" align="center">幻灯片分类</td>
		<td width="40%" align="center">管理</td>
	</tr>
    <?php
		$dsql->SetQuery("Select * From #@__flashtype");
		$dsql->Execute();
		while($row = $dsql->GetObject())
		{
	?>
    <tr align="center" bgcolor="#FFFFFF">
		<form name="form1" action="flash_type.php" method="post">
		<input type="hidden" name="dopost" value="edit"/>
		<input type="hidden" name="id" value="<?php echo $row->id?>"/>
		<td height="24">
			<?php echo $row->id; ?>
		</td>
		<td height="24">
			<input name="typename" value="<?php echo $row->typename?>" type="text" class='pubinputs' style="width:80%" /><input name="imageField"  type="submit" class="np coolbg" value="修改" />
		</td>
		<td>
			<a onclick="javascript:if(confirm('确定要删除该幻灯片组吗？')){window.location='flash_type.php?id=<?php echo $row->id; ?>&dopost=delete';return true;}return false;" href='javascript:viod(0)'>[删除]</a>
		</td>
		</form>
    </tr>
    <?php
		}
	?>
	<tr bgcolor="#F8FCF1">
		<td height="28" colspan="4" bgcolor="#F9FCEF"><strong>添加幻灯片组</strong></td>
    </tr>
    <tr height="24" align="center" bgcolor="#FFFFFF">
		<form name="form1" action="flash_type.php" method="post">
		<input type="hidden" name="dopost" value="add"/>
		<td>幻灯片组名称</td>
		<td align="left" bgcolor="#FFFFFF" colspan="2"><input name="typename" type="text" id="typename" class='pubinputs' style="width:40%" /><input name="imageField"  type="submit" class="np coolbg" value="添加" /></td>

		</form>
    </tr>
</table>
</body>
</html>